package com.li.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dept")
@Component
public class Dept {
    @TableId(value = "did", type = IdType.INPUT)
    private Integer did;

    @TableField(value = "bname")
    private String bname;

    public static final String COL_DID = "did";

    public static final String COL_BNAME = "bname";
}